/**
 * @author Halon
 */

function BtnClb()
{
    this.logger = new Logger('BtnClb');
    this.onActivate = function (){};
    this.onDeactivate = function (){ return true;};
    this.onBtnClicked = function (){};
}

function SettingsTypeBtnClb(scn)
{
    this.scene = scn;
}

SettingsTypeBtnClb.prototype = new BtnClb();
SettingsTypeBtnClb.prototype.onActivate = function()
{
    this.logger.log('onActivate', 'Btn '+ this.scene);
    GSM.get('ProfileEditor').showScene(this.scene);
}

SettingsTypeBtnClb.prototype.onBtnClicked = function()
{
    this.logger.log('onBtnClicked', 'Btn '+ this.scene);
    return {order : $.sfKey.DOWN, command: $.sfKey.ENTER};
}

function BtnDisabledUpDownArrows(key)
{
    if ($.sfKey.DOWN == key || $.sfKey.UP == key)
        return false;
    if ($.sfKey.ENTER == key)
    {
        return this.callb.onBtnClicked();
    }
    return {order : key};
}




CodeRepo.SetReady('ButtonCallback');